﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ChangeUnamePwrd.aspx.cs" Inherits="SMSSnew.UI.ChangeUnamePwrd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<link href="../css/StyleSheet.css" rel="stylesheet" type="text/css" />
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    
  <div class="container">
    
    <form id="Form1" class="well span11 text-center" runat="server">
    
    <asp:HyperLink ID="HyperLink6" runat="server" CssClass="text-right"><h5>Logout</h5></asp:HyperLink>
    
    <h4 class="text-info">Change Username and Password</h4><br />
    
	<table class="table container text-left">
	
	
    
    <tr>
	<td class="Colwidth"><br />Type New Username:
    </td>
	<td><br />
        <asp:TextBox ID="txtNewUname" runat="server" CssClass="span4"></asp:TextBox>
    </td> 
    <td>
                    <br />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="RequiredFieldValidator"
                        ControlToValidate="txtUName">
                You need to type your Username
                    </asp:RequiredFieldValidator>
                    <br />
                    <asp:CustomValidator runat="server" ID="CustomValidator2" ControlToValidate="txtUName"
                        Text="Username length should be more than 6 digits" ClientValidationFunction="clientValidate"
                        Display="Dynamic">
                    </asp:CustomValidator>
                    <br />
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" ControlToValidate="txtPWord"
                        ValidationExpression="[a-zA-Zs0-9]{6,20}$" AutoPostBack="true" Display="Static"
                        ErrorMessage="Username must contain only Alpha-Numeric Characters" EnableClientScript="False"
                        runat="server" />
                </td>
    </tr>
    
    <tr> 
    <td class="Colwidth" id="txtcompareValidator"><br />Type New Username Again:
    </td>
	<td>
        <asp:TextBox ID="txtNewUname1" runat="server" CssClass="span4"></asp:TextBox>
       <td> 
        <asp:CompareValidator ID="txtCompareValidator1" runat="server" ErrorMessage="both password must same"></asp:CompareValidator>  </td>
    </td>
    

        </tr>
    
    <tr>
    <td class="Colwidth"><br />Type Previous Password:
    </td>
	<td><br />
        <asp:TextBox ID="txtPpword" runat="server" class="span4" TextMode="Password"></asp:TextBox>
    </td>
    <td>
                    <br />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="RequiredFieldValidator"
                        ControlToValidate="txtPWord">
            You need to type your Password
                    </asp:RequiredFieldValidator>
                    <br />
                    <asp:CustomValidator runat="server" ID="CustomValidator1" ControlToValidate="txtPWord"
                        Text="Enter your previouse password...!" ClientValidationFunction="clientValidate"
                        Display="Dynamic" onservervalidate="CustomValidator1_ServerValidate"></asp:CustomValidator>
                    <br />
                </td>
    </tr>
    
    <tr>
    <td class="Colwidth"><br />Type New Password:
    </td>
	<td><br />
        <asp:TextBox ID="txtNewPword" runat="server" class="span4" TextMode="Password"></asp:TextBox>
    </td>
    <td>
    
        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
            ControlToValidate="txtNewPword" ErrorMessage="Enter a new password..."></asp:RequiredFieldValidator>
    
    </td>
    </tr>
    
    <tr>
    <td><br />Type New Password Again:
    </td>
	<td><br />
        <asp:TextBox ID="txtNewPword1" runat="server" class="span4" TextMode="Password"></asp:TextBox>
    </td>
    <td>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
            ControlToValidate="txtNewPword1" 
            ErrorMessage="Enter your new password again...!"></asp:RequiredFieldValidator>
        <br />
        <asp:CompareValidator ID="CompareValidator1" runat="server" 
            ControlToCompare="txtNewPword" ControlToValidate="txtNewPword1" 
            ErrorMessage="Both password should be same...!"></asp:CompareValidator>
    </td>
    </tr>
    
    <tr>
    <td class="Colwidth"><br />
        <asp:Button ID="ButSaveChange" runat="server" Text="Save Changes" 
            CssClass="btn btn-primary" onclick="Button1_Click" />
    </td>
	<td><br />
        <asp:Button ID="ButReset" runat="server" Text="Reset" CssClass="btn btn-primary"/>
    </td>     
    </tr>
		
	</table>
	
	</form>	

	</div>
  
    <script src="js/bootstrap.js"></script>
    
</body>
</html>
